<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>招聘信息 - 社交平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #f97316;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-tertiary: #94a3b8;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --bg-gray: #f1f5f9;
            --bg-gray-dark: #e2e8f0;
            --border-light: #e2e8f0;
            --border-medium: #cbd5e1;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            flex: 1;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 搜索栏 */
        .search-container {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .search-box {
            position: relative;
            background-color: var(--bg-gray);
            border-radius: 24px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
        }
        
        .search-icon {
            color: var(--text-tertiary);
            font-size: 0.95rem;
            margin-right: 8px;
        }
        
        .search-input {
            flex: 1;
            background: none;
            border: none;
            outline: none;
            font-size: 0.9rem;
            color: var(--text-primary);
        }
        
        .search-input::placeholder {
            color: var(--text-tertiary);
        }
        
        /* 快捷筛选栏 - 水平滚动式 */
        .quick-filters {
            display: flex;
            padding: 8px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            overflow-x: auto;
            scrollbar-width: none;
            gap: 8px;
        }
        
        .quick-filters::-webkit-scrollbar {
            display: none;
        }
        
        .filter-chip {
            white-space: nowrap;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 0.85rem;
            background-color: var(--bg-gray);
            color: var(--text-secondary);
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .filter-chip.active {
            background-color: var(--primary);
            color: white;
        }
        
        .filter-chip .icon {
            font-size: 0.9rem;
        }
        
        /* 已选筛选条件 */
        .selected-filters {
            padding: 8px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        
        .selected-filters-title {
            font-size: 0.85rem;
            color: var(--text-tertiary);
            white-space: nowrap;
        }
        
        .selected-filter-tag {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .remove-filter {
            background: none;
            border: none;
            color: var(--primary);
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .clear-all {
            font-size: 0.8rem;
            color: var(--text-secondary);
            background: none;
            border: none;
            margin-left: auto;
        }
        
        /* 招聘列表容器 */
        .jobs-container {
            padding: 12px 16px;
        }
        
        /* 招聘卡片基础样式 */
        .job-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 16px;
            box-shadow: var(--shadow);
            text-decoration: none;
            color: var(--text-primary);
            transition: transform 0.2s ease;
        }
        
        .job-card:hover {
            transform: translateY(-2px);
        }
        
        .job-header {
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .company-logo {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: var(--bg-gray);
            flex-shrink: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
            font-size: 1.5rem;
        }
        
        .company-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .company-info {
            flex: 1;
        }
        
        .company-name {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 2px;
        }
        
        .company-meta {
            font-size: 0.75rem;
            color: var(--text-tertiary);
            display: flex;
            gap: 12px;
        }
        
        .verified-badge {
            color: var(--primary);
            font-size: 0.75rem;
            margin-left: 4px;
        }
        
        .job-content {
            padding: 0 16px 12px;
        }
        
        .job-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 8px;
            color: var(--text-primary);
        }
        
        .job-salary {
            color: var(--secondary);
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 8px;
        }
        
        .job-description {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }
        
        .job-tag {
            background-color: var(--bg-gray);
            color: var(--text-secondary);
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
        }
        
        .job-tag.hot {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }
        
        .job-tag.fulltime {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }
        
        .job-tag.intern {
            background-color: rgba(245, 158, 11, 0.1);
            color: var(--warning);
        }
        
        /* 图片样式变体 */
        .job-multi-image .job-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            margin: 0 16px 12px;
        }
        
        .job-multi-image .job-image {
            aspect-ratio: 1;
            position: relative;
            border-radius: var(--radius-sm);
            overflow: hidden;
        }
        
        .job-multi-image .job-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .job-no-image .job-content {
            padding-bottom: 16px;
        }
        
        /* 底部信息栏 */
        .job-footer {
            display: flex;
            justify-content: space-between;
            padding: 8px 16px;
            border-top: 1px solid var(--border-light);
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }
        
        .job-publish-time {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .job-actions {
            display: flex;
            gap: 12px;
        }
        
        .job-action {
            color: var(--text-tertiary);
            background: none;
            border: none;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 加载更多 */
        .load-more {
            padding: 16px 0;
            text-align: center;
        }
        
        .load-more-btn {
            background-color: var(--bg-white);
            border: 1px solid var(--border-light);
            color: var(--text-secondary);
            padding: 8px 24px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">招聘信息</div>
        <button class="nav-action primary" id="postJobBtn">
            <i class="fas fa-plus"></i>
        </button>
    </div>
    
    <!-- 搜索栏 -->
    <div class="search-container">
        <div class="search-box">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索职位、公司或关键词...">
        </div>
    </div>
    
    <!-- 快捷筛选栏 - 水平滚动式 -->
    <div class="quick-filters">
        <button class="filter-chip active">
            <span>全部</span>
        </button>
        <button class="filter-chip">
            <i class="fas fa-clock icon"></i>
            <span>最新发布</span>
        </button>
        <button class="filter-chip">
            <i class="fas fa-fire icon"></i>
            <span>热门职位</span>
        </button>
        <button class="filter-chip">
            <i class="fas fa-money-bill icon"></i>
            <span>薪资优先</span>
        </button>
        <button class="filter-chip">
            <i class="fas fa-building icon"></i>
            <span>知名企业</span>
        </button>
        <button class="filter-chip">
            <i class="fas fa-briefcase icon"></i>
            <span>全职</span>
        </button>
        <button class="filter-chip">
            <i class="fas fa-graduation-cap icon"></i>
            <span>实习</span>
        </button>
        <button class="filter-chip" id="advancedFilterToggle">
            <i class="fas fa-sliders icon"></i>
            <span>更多筛选</span>
        </button>
    </div>
    
    <!-- 已选筛选条件 -->
    <div class="selected-filters">
        <span class="selected-filters-title">已选:</span>
        <div class="selected-filter-tag">
            <span>互联网</span>
            <button class="remove-filter"><i class="fas fa-times"></i></button>
        </div>
        <div class="selected-filter-tag">
            <span>全职</span>
            <button class="remove-filter"><i class="fas fa-times"></i></button>
        </div>
        <div class="selected-filter-tag">
            <span>薪资10k+</span>
            <button class="remove-filter"><i class="fas fa-times"></i></button>
        </div>
        <button class="clear-all">清除全部</button>
    </div>
    
    <!-- 招聘列表容器 -->
    <div class="jobs-container">
        <!-- 招聘卡片 - 多图片样式 -->
        <div class="job-card job-multi-image">
            <div class="job-header">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/28/100/100" alt="公司Logo">
                </div>
                <div class="company-info">
                    <div class="company-name">
                        科技创新有限公司 <i class="fas fa-check-circle verified-badge"></i>
                    </div>
                    <div class="company-meta">
                        <span>互联网</span>
                        <span>500-1000人</span>
                    </div>
                </div>
            </div>
            
            <div class="job-content">
                <div class="job-title">资深UI/UX设计师</div>
                <div class="job-salary">15k-25k · 13薪</div>
                <div class="job-description">
                    负责公司产品的用户界面设计和用户体验优化，与产品经理和开发团队紧密合作，打造优质的用户体验。要求3年以上相关经验，有成功案例者优先。
                </div>
                <div class="job-tags">
                    <span class="job-tag fulltime">全职</span>
                    <span class="job-tag">UI设计</span>
                    <span class="job-tag">UX设计</span>
                    <span class="job-tag">3-5年</span>
                    <span class="job-tag hot">急聘</span>
                </div>
            </div>
            
            <!-- 多图片展示区 -->
            <div class="job-images">
                <div class="job-image">
                    <img src="https://picsum.photos/id/20/300/300" alt="公司环境1">
                </div>
                <div class="job-image">
                    <img src="https://picsum.photos/id/26/300/300" alt="公司环境2">
                </div>
                <div class="job-image">
                    <img src="https://picsum.photos/id/42/300/300" alt="公司环境3">
                </div>
            </div>
            
            <div class="job-footer">
                <div class="job-publish-time">
                    <i class="far fa-clock"></i>
                    <span>2小时前发布</span>
                </div>
                <div class="job-actions">
                    <button class="job-action collect-btn">
                        <i class="far fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                    <button class="job-action">
                        <i class="far fa-share-square"></i>
                        <span>分享</span>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 招聘卡片 - 无图片样式 -->
        <div class="job-card job-no-image">
            <div class="job-header">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/40/100/100" alt="公司Logo">
                </div>
                <div class="company-info">
                    <div class="company-name">
                        智慧金融服务有限公司 <i class="fas fa-check-circle verified-badge"></i>
                    </div>
                    <div class="company-meta">
                        <span>金融</span>
                        <span>1000-5000人</span>
                    </div>
                </div>
            </div>
            
            <div class="job-content">
                <div class="job-title">前端开发工程师</div>
                <div class="job-salary">12k-20k · 14薪</div>
                <div class="job-description">
                    负责公司金融产品的前端开发工作，实现高质量的用户界面和交互效果。要求熟悉HTML、CSS、JavaScript及主流前端框架，有金融行业经验者优先。
                </div>
                <div class="job-tags">
                    <span class="job-tag fulltime">全职</span>
                    <span class="job-tag">前端开发</span>
                    <span class="job-tag">JavaScript</span>
                    <span class="job-tag">2-3年</span>
                </div>
            </div>
            
            <div class="job-footer">
                <div class="job-publish-time">
                    <i class="far fa-clock"></i>
                    <span>昨天 15:30发布</span>
                </div>
                <div class="job-actions">
                    <button class="job-action collect-btn">
                        <i class="far fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                    <button class="job-action">
                        <i class="far fa-share-square"></i>
                        <span>分享</span>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 招聘卡片 - 单图片样式 -->
        <div class="job-card job-multi-image">
            <div class="job-header">
                <div class="company-logo">
                    <i class="fas fa-utensils"></i>
                </div>
                <div class="company-info">
                    <div class="company-name">
                        美味餐饮管理有限公司
                    </div>
                    <div class="company-meta">
                        <span>餐饮</span>
                        <span>100-500人</span>
                    </div>
                </div>
            </div>
            
            <div class="job-content">
                <div class="job-title">餐厅经理</div>
                <div class="job-salary">8k-12k · 绩效奖金</div>
                <div class="job-description">
                    负责餐厅日常运营管理，包括员工管理、客户服务、库存管理等工作。要求有2年以上餐饮管理经验，具备良好的沟通能力和团队管理能力。
                </div>
                <div class="job-tags">
                    <span class="job-tag fulltime">全职</span>
                    <span class="job-tag">餐饮管理</span>
                    <span class="job-tag">经验不限</span>
                </div>
            </div>
            
            <!-- 单图片展示区 -->
            <div class="job-images">
                <div class="job-image" style="grid-column: span 3;">
                    <img src="https://picsum.photos/id/292/600/300" alt="餐厅环境">
                </div>
            </div>
            
            <div class="job-footer">
                <div class="job-publish-time">
                    <i class="far fa-clock"></i>
                    <span>3天前发布</span>
                </div>
                <div class="job-actions">
                    <button class="job-action collect-btn">
                        <i class="fas fa-bookmark"></i>
                        <span>已收藏</span>
                    </button>
                    <button class="job-action">
                        <i class="far fa-share-square"></i>
                        <span>分享</span>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 招聘卡片 - 实习岗位（无图片） -->
        <div class="job-card job-no-image">
            <div class="job-header">
                <div class="company-logo">
                    <img src="https://picsum.photos/id/60/100/100" alt="公司Logo">
                </div>
                <div class="company-info">
                    <div class="company-name">
                        未来教育科技有限公司 <i class="fas fa-check-circle verified-badge"></i>
                    </div>
                    <div class="company-meta">
                        <span>教育</span>
                        <span>100-500人</span>
                    </div>
                </div>
            </div>
            
            <div class="job-content">
                <div class="job-title">内容运营实习生</div>
                <div class="job-salary">2k-3k · 实习补贴</div>
                <div class="job-description">
                    协助内容团队进行教育类内容的策划、编辑和发布，参与用户互动和反馈收集。要求在校大学生，每周至少出勤4天，有相关经验者优先。
                </div>
                <div class="job-tags">
                    <span class="job-tag intern">实习</span>
                    <span class="job-tag">内容运营</span>
                    <span class="job-tag">在校学生</span>
                    <span class="job-tag">可转正</span>
                </div>
            </div>
            
            <div class="job-footer">
                <div class="job-publish-time">
                    <i class="far fa-clock"></i>
                    <span>1周前发布</span>
                </div>
                <div class="job-actions">
                    <button class="job-action collect-btn">
                        <i class="far fa-bookmark"></i>
                        <span>收藏</span>
                    </button>
                    <button class="job-action">
                        <i class="far fa-share-square"></i>
                        <span>分享</span>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 加载更多 -->
    <div class="load-more">
        <button class="load-more-btn" id="loadMoreBtn">
            <i class="fas fa-spinner fa-spin" style="display: none;"></i>
            <span>加载更多职位</span>
        </button>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-briefcase nav-icon"></i>
            <span>招聘</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const postJobBtn = document.getElementById('postJobBtn');
        const filterChips = document.querySelectorAll('.filter-chip');
        const advancedFilterToggle = document.getElementById('advancedFilterToggle');
        const removeFilterTags = document.querySelectorAll('.remove-filter');
        const clearAllFilters = document.querySelector('.clear-all');
        const loadMoreBtn = document.getElementById('loadMoreBtn');
        const collectButtons = document.querySelectorAll('.collect-btn');
        
        // 快捷筛选切换
        filterChips.forEach(chip => {
            chip.addEventListener('click', function() {
                // 只有非"更多筛选"的按钮才切换active状态
                if (!this.id) {
                    filterChips.forEach(c => c.classList.remove('active'));
                    this.classList.add('active');
                    const filterText = this.querySelector('span').textContent;
                    showToast(`已切换到${filterText}`);
                }
            });
        });
        
        // 更多筛选按钮
        advancedFilterToggle.addEventListener('click', function() {
            showToast('高级筛选功能即将上线');
        });
        
        // 移除单个筛选条件
        removeFilterTags.forEach(tag => {
            tag.addEventListener('click', function() {
                const filterText = this.parentElement.querySelector('span').textContent;
                this.parentElement.remove();
                showToast(`已移除筛选: ${filterText}`);
                
                // 如果没有筛选条件了，隐藏标题
                if (document.querySelectorAll('.selected-filter-tag').length === 0) {
                    document.querySelector('.selected-filters-title').style.display = 'none';
                }
            });
        });
        
        // 清除所有筛选条件
        clearAllFilters.addEventListener('click', function() {
            const filterTags = document.querySelectorAll('.selected-filter-tag');
            if (filterTags.length > 0) {
                filterTags.forEach(tag => tag.remove());
                document.querySelector('.selected-filters-title').style.display = 'none';
                showToast('已清除所有筛选条件');
            }
        });
        
        // 加载更多
        loadMoreBtn.addEventListener('click', function() {
            const spinner = this.querySelector('.fa-spinner');
            const text = this.querySelector('span');
            const originalText = text.textContent;
            
            spinner.style.display = 'inline-block';
            text.textContent = '加载中...';
            this.disabled = true;
            
            setTimeout(() => {
                spinner.style.display = 'none';
                text.textContent = originalText;
                this.disabled = false;
                showToast('已加载更多职位信息');
            }, 1500);
        });
        
        // 收藏功能
        collectButtons.forEach(button => {
            button.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const text = this.querySelector('span');
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    text.textContent = '已收藏';
                    showToast('已收藏该职位');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    text.textContent = '收藏';
                    showToast('已取消收藏');
                }
            });
        });
        
        // 其他按钮事件
        backBtn.addEventListener('click', function() {
            history.back();
        });
        
        postJobBtn.addEventListener('click', function() {
            showToast('发布招聘信息页面已打开');
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>

